--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
docs/agents/conventions/tests.md 63f836b03d64eac4fa716b2ada23ab565c2b455e (63f836b0) Text, 1.08 KB
Test conventions
Applies when editing T383838tests/**/*.{py,js}.
• Backend: T383838tests/backend/test_*.py with pytest + asyncio auto mode.
• Frontend: T383838tests/frontend/*.test.js with vitest + T383838@vue/test-utils.
• Mock T383838window.api for page tests. Assert toasts when outcomes are user-visible.
• Prefer focused files over full suite unless the user asks for broad runs.
• Landlock tests that apply the sandbox must run in a subprocess (one restrict per process).
• Long-running / notification soak suites can hang. Prefer timeouts and avoid piping pytest through T383838tail in agent shells.
Extended Edge Case Tester (EECT) and Live Validation (LV)
• EECT packs live under T383838tests/backend/eect/packs/ and use marker T383838eect.
• LV ladder lives under T383838tests/backend/eect/live/ and uses marker T383838live_validation.
• Replay a failure with T383838MESHCHAT_EECT_SEED=<seed> (printed on assert failure).
• Commands: T383838task test:eect, T383838task test:lv:l0, T383838MESHCHAT_LIVE_VALIDATION=1 task test:lv.
• LV L2/L3 are opt-in (T383838MESHCHAT_LIVE_VALIDATION=1 or T383838MESHCHAT_LIVE_RETICULUM=1). L0/L1 stay CI-safe.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────